<?php
/**
 * Created by JetBrains PhpStorm.
 * User: �������
 * Date: 23.04.12
 * Time: 18:31
 * To change this template use File | Settings | File Templates.
 */
 
    header("content-type:text/html; charset=utf-8");

    $includePath = $_SERVER['DOCUMENT_ROOT'] . '/includes/';
    $incPath = ';' . $includePath;
    $incPath .= ';' . $includePath . 'model/';
    $incPath .= ';' . $includePath . 'view/';
    $incPath .= ';' . $includePath . 'controller/';
    $incPath .= ';' . $includePath . 'DAO/';

    set_include_path( get_include_path() . $incPath);

    function __autoload($className) // автозагрузчик классов
    {
        require_once( str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php' );
    }


    $frontController = FrontController::instance();
    $frontController->run();